aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/com/jogamp/gluegen/jcpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/jogamp/gluegen/jcpp')
-rw-r--r--src/test/java/com/jogamp/gluegen/jcpp/IncludeAbsoluteTest.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/java/com/jogamp/gluegen/jcpp/IncludeAbsoluteTest.java b/src/test/java/com/jogamp/gluegen/jcpp/IncludeAbsoluteTest.java
index e9d7b27..9008ebe 100644
--- a/src/test/java/com/jogamp/gluegen/jcpp/IncludeAbsoluteTest.java
+++ b/src/test/java/com/jogamp/gluegen/jcpp/IncludeAbsoluteTest.java
@@ -32,8 +32,13 @@ public class IncludeAbsoluteTest extends SingletonJunitCase {
final File file = new File(filepath);
assertTrue(file.exists());
+ final String slashifiedFilePath = IOUtil.slashify(file.getAbsolutePath(), true, false);
+ LOG.info("slashifiedFilePath: " + slashifiedFilePath);
- final String input = "#include <" + file.getAbsolutePath() + ">\n";
+ // Expects something like:
+ // WINDOWS: "/C:/projects/jogamp/gluegen/jcpp/src/test/resources/absolute.h"
+ // UNIX: "/projects/jogamp/gluegen/jcpp/src/test/resources/absolute.h"
+ final String input = "#include <" + slashifiedFilePath + ">\n";
LOG.info("Input: " + input);
final Preprocessor pp = new Preprocessor();
pp.addInput(new StringLexerSource(input, true));