Skip to content

Commit

Permalink
OnlyLowMemUnittests version disables memory-greedy unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
denizzzka committed Feb 3, 2024
1 parent a6f1083 commit 254fd67
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions druntime/src/core/internal/gc/impl/conservative/gc.d
Original file line number Diff line number Diff line change
Expand Up @@ -4941,6 +4941,7 @@ unittest
// improve predictability of coverage of code that is eventually not hit by other tests
debug (SENTINEL) {} else // cannot extend with SENTINEL
debug (MARK_PRINTF) {} else // takes forever
version (OnlyLowMemUnittests) {} else
unittest
{
import core.memory;
Expand Down
1 change: 1 addition & 0 deletions druntime/src/core/memory.d
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ extern(C):

// https://issues.dlang.org/show_bug.cgi?id=13111
///
version (OnlyLowMemUnittests) {} else
unittest
{
enum size1 = 1 << 11 + 1; // page in large object pool
Expand Down
1 change: 1 addition & 0 deletions druntime/src/rt/aaA.d
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ unittest
string[412] names;
ubyte[1024] moredata;
}
version (OnlyLowMemUnittests) {} else
test!(Large, Large);
}

Expand Down
1 change: 1 addition & 0 deletions druntime/src/rt/lifetime.d
Original file line number Diff line number Diff line change
Expand Up @@ -2247,6 +2247,7 @@ unittest
assert(GC.getAttr(p) == BlkAttr.NO_SCAN);
}
test(16);
version (OnlyLowMemUnittests) {} else
test(1024 * 1024);
}

Expand Down

0 comments on commit 254fd67

Please sign in to comment.