diff options
Diffstat (limited to 'test/plugin_c_src.mk')
-rw-r--r-- | test/plugin_c_src.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/plugin_c_src.mk b/test/plugin_c_src.mk index 68a3a97..2b2b1b8 100644 --- a/test/plugin_c_src.mk +++ b/test/plugin_c_src.mk @@ -86,3 +86,13 @@ endif $i "Check that all files were removed" $t test ! -e $(APP)/c_src/env.mk + +c-src-nif-missing-name: build clean + + $i "Bootstrap a new OTP library named $(APP)" + $t mkdir $(APP)/ + $t cp ../erlang.mk $(APP)/ + $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v + + $i "Try to generate a NIF without giving it a name" + $t ! $(MAKE) -C $(APP) new-nif $v |