aboutsummaryrefslogtreecommitdiffstats
path: root/src/native
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-09-21 07:26:53 +0200
committerSven Gothel <[email protected]>2015-09-21 07:26:53 +0200
commita8db919494e934f768ee8adb0d0bad75fa390e62 (patch)
treecfa1aba50d34a53501a46c6296ba4e6bdc2a3209 /src/native
parentb17ba1462cc4bb96be52f378dedafb50a3bc13f1 (diff)
Bug 1219: IOUtil.testDirExe: Satisfactory when executed, more debug options
IOUtil.testDirExe(): - Satisfactory when executed Failure to execute produce an IOException right at ProcessBuilder.start(). Hence we can allow an unexpected process exit value, since we only want to learn whether executable files are allowed. - More debug options DEBUG_EXE: 'jogamp.debug.IOUtil.Exe' DEBUG_EXE_NOSTREAM: 'jogamp.debug.IOUtil.Exe.NoStream' - if DEBUG_EXE - a pre-existing 'jogamp_exe_tst'+<SUFFIX> will be used as-is. - the test-exe will not be deleted - StreamMonitor is being used to dump stdout/stderr if !DEBUG_EXE_NOSTREAM.
Diffstat (limited to 'src/native')
-rwxr-xr-xsrc/native/tinype/make.sh7
-rw-r--r--src/native/tinype/tiny2.c8
2 files changed, 13 insertions, 2 deletions
diff --git a/src/native/tinype/make.sh b/src/native/tinype/make.sh
index 2a81c6b..9a68f0d 100755
--- a/src/native/tinype/make.sh
+++ b/src/native/tinype/make.sh
@@ -1,4 +1,7 @@
+/cygdrive/c/mingw/bin/gcc -nodefaultlibs -nostdlib -s -Os -mwindows -o tiny2-win32-i386.exe tiny2.c
+
/cygdrive/c/mingw/bin/gcc -nodefaultlibs -nostdlib -s -Os -mwindows -o tiny-win32-i386.exe tiny.c
gzip -9 -c tiny-win32-i386.exe > tiny-win32-i386.exe.gz
-/cygdrive/c/mingw64/bin/gcc -nodefaultlibs -nostdlib -s -Os -mwindows -o tiny-win32-x86_64.exe tiny.c
-gzip -9 -c tiny-win32-x86_64.exe > tiny-win32-x86_64.exe.gz
+
+#/cygdrive/c/mingw64/bin/gcc -nodefaultlibs -nostdlib -s -Os -mwindows -o tiny-win32-x86_64.exe tiny.c
+#gzip -9 -c tiny-win32-x86_64.exe > tiny-win32-x86_64.exe.gz
diff --git a/src/native/tinype/tiny2.c b/src/native/tinype/tiny2.c
new file mode 100644
index 0000000..d24c287
--- /dev/null
+++ b/src/native/tinype/tiny2.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+const char * id = "JogAmp Windows Universal Test PE Executable";
+
+int main()
+{
+ fprintf(stderr, "%s\n", id);
+ return 42;
+}