Skip to content

Instantly share code, notes, and snippets.

@colomon
Created February 22, 2012 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colomon/1884535 to your computer and use it in GitHub Desktop.
Save colomon/1884535 to your computer and use it in GitHub Desktop.
# osname = darwin
ok 1 - We have a working C compiler. using /usr/bin/gcc-4.2
ok 2 - We have a working C compiler. using /usr/bin/gcc-4.2 -m32
ok 3 - We can embed p5. using /usr/bin/gcc-4.2
ok 4 - We can embed p5. using /usr/bin/gcc-4.2 -m32
ok 5 - We can run programs under mono using /usr/bin/gcc-4.2
ok 6 - We can run programs under mono using /usr/bin/gcc-4.2 -m32
Unhandled Exception: System.DllNotFoundException: /Users/colomon/tools/niecza/p5test/tmp/test4lib.dylib
at (wrapper managed-to-native) Test4:RunTest ()
at Test4.Main () [0x00000] in <filename unknown>:0
not ok 7 - We can call C code from mono using /usr/bin/gcc-4.2
# Failed test 'We can call C code from mono using /usr/bin/gcc-4.2'
# at p5test.pl line 62.
# got: ''
# expected: 'OK 4
# '
ok 8 - We can call C code from mono using /usr/bin/gcc-4.2 -m32
Unhandled Exception: System.DllNotFoundException: /Users/colomon/tools/niecza/p5test/tmp/test5lib.dylib
at (wrapper managed-to-native) Test4:RunTest ()
at Test4.Main () [0x00000] in <filename unknown>:0
not ok 9 - We can call p5 code from mono using /usr/bin/gcc-4.2
# Failed test 'We can call p5 code from mono using /usr/bin/gcc-4.2'
# at p5test.pl line 62.
# got: ''
# expected: 'OK 5
# '
Unhandled Exception: System.DllNotFoundException: /Users/colomon/tools/niecza/p5test/tmp/test5lib.dylib
at (wrapper managed-to-native) Test4:RunTest ()
at Test4.Main () [0x00000] in <filename unknown>:0
not ok 10 - We can call p5 code from mono using /usr/bin/gcc-4.2 -m32
# Failed test 'We can call p5 code from mono using /usr/bin/gcc-4.2 -m32'
# at p5test.pl line 62.
# got: ''
# expected: 'OK 5
# '
ok 11 - We can call p5 code from a shared library using /usr/bin/gcc-4.2
ld: warning: ignoring file tmp/test6lib.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
"_run_test", referenced from:
_main in ccPsKx1Q.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Can't exec "tmp/test6": No such file or directory at p5test.pl line 44.
not ok 12 - We can call p5 code from a shared library using /usr/bin/gcc-4.2 -m32
# Failed test 'We can call p5 code from a shared library using /usr/bin/gcc-4.2 -m32'
# at p5test.pl line 62.
# got: undef
# expected: 'OK 6
# '
1..12
# Looks like you failed 4 tests of 12.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment