diff options
author | Sven Gothel <[email protected]> | 2015-09-21 07:26:53 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-09-21 07:26:53 +0200 |
commit | a8db919494e934f768ee8adb0d0bad75fa390e62 (patch) | |
tree | cfa1aba50d34a53501a46c6296ba4e6bdc2a3209 /src/native/tinype/tiny2.c | |
parent | b17ba1462cc4bb96be52f378dedafb50a3bc13f1 (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/tinype/tiny2.c')
-rw-r--r-- | src/native/tinype/tiny2.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; +} |