First commit on a late git install
This commit is contained in:
22
tests/init_only_test.c
Normal file
22
tests/init_only_test.c
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <stdio.h>
|
||||
#include "../nostr_core/nostr_core.h"
|
||||
|
||||
int main(void) {
|
||||
printf("=== Testing library initialization only ===\n");
|
||||
|
||||
printf("About to call nostr_init()...\n");
|
||||
int result = nostr_init();
|
||||
|
||||
if (result != NOSTR_SUCCESS) {
|
||||
printf("ERROR: Failed to initialize NOSTR library: %s\n", nostr_strerror(result));
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf("✅ Library initialized successfully!\n");
|
||||
|
||||
printf("About to call nostr_cleanup()...\n");
|
||||
nostr_cleanup();
|
||||
|
||||
printf("✅ Library cleanup completed!\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user