Skip to content

Commit 8f4c914

Browse files
committed
Revert unintentional changes
1 parent e566e4a commit 8f4c914

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dart/test/utils/native_test_utils.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ CommonDatabase openTestDatabase() {
1414
return DynamicLibrary.open('libsqlite3.so.0');
1515
});
1616
sqlite_open.open.overrideFor(sqlite_open.OperatingSystem.macOS, () {
17-
return DynamicLibrary.open(
18-
'/opt/homebrew/Cellar/sqlite/3.48.0/lib/libsqlite3.dylib');
17+
return DynamicLibrary.open('libsqlite3.dylib');
1918
});
2019
var lib = DynamicLibrary.open(getLibraryForPlatform(path: libPath));
2120
var extension = SqliteExtension.inLibrary(lib, 'sqlite3_powersync_init');
@@ -24,6 +23,8 @@ CommonDatabase openTestDatabase() {
2423
}
2524

2625
String getLibraryForPlatform({String? path = "."}) {
26+
// Using an absolute path is required for macOS, where Dart can't dlopen
27+
// relative paths due to being a "hardened program".
2728
return p.normalize(p.absolute(switch (Abi.current()) {
2829
Abi.androidArm ||
2930
Abi.androidArm64 ||

0 commit comments

Comments
 (0)