Skip to content

Commit

Permalink
[fix]: remove dummy exception in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
castlele committed Dec 27, 2024
1 parent aa98ee3 commit e550a1b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
check_report.txt
.cache/
**/*.o
**/*.so
cluautils/*
15 changes: 13 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
OSNAME=$(shell uname)

CC=clang
CFLAGS=-arch arm64
ARCHIVE_CFLAGS=-shared -fPIC $(CFLAGS)
Expand All @@ -20,13 +22,22 @@ THREAD_BINARY=thread.so
MEMORY_CFILES=$(MEMORY_SRC)/memory.c
MEMORY_BINARY=memory.so


THREAD_LIBS=-L./$(THREAD_BIN)/ -lcthread
THREAD_LIBS=
TEST_SRC=tests/cthread_internal_tests.c
TEST_BINARY=tests

# TODO: Update paths somehow
LIBS=-llua -ldl -lm -I/Users/castlelecs/.luaver/lua/5.1/include/ -L/Users/castlelecs/.luaver/lua/5.1/lib/

ifeq ($(OSNAME), Darwin)
THREAD_LIBS=-L./$(THREAD_BIN)/ -lcthread
endif

ifeq ($(OSNAME), Linux)
THREAD_LIBS=-L./$(THREAD_BIN)/ -lcthread -pthread
endif


build: build_thread build_memory
test: test_thread

Expand Down
Binary file added src/memory/bin/memory.so
Binary file not shown.
Binary file added src/threads/bin/libcthread.so
Binary file not shown.
Binary file added src/threads/bin/thread.so
Binary file not shown.
3 changes: 1 addition & 2 deletions tests/oop_tests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ t.describe("OOP tests", function()
local obj = CObject()
local sut = obj:extend()

-- expectDefaultMethods(sut)
t.expect(false)
expectDefaultMethods(sut)
end)
end)

0 comments on commit e550a1b

Please sign in to comment.