aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/alloc/AllocTest.cpp5
-rw-r--r--tests/alloc/AllocTest.err7
2 files changed, 2 insertions, 10 deletions
diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp
index 9394905e..66bc84f3 100644
--- a/tests/alloc/AllocTest.cpp
+++ b/tests/alloc/AllocTest.cpp
@@ -97,9 +97,8 @@ static void check_tfi_usage(BTS *the_bts)
tbf->trx->trx_no) == tbf);
}
*tbf_var = tbf;
- if (!(pdch->assigned_tfi() & (1 << tbf->tfi())))
- fprintf(stderr, "ERROR: "
- "TFI not marked as used in PDCH\n");
+ OSMO_ASSERT(pdch->assigned_tfi(tbf->direction) &
+ (1 << tbf->tfi()));
}
}
}
diff --git a/tests/alloc/AllocTest.err b/tests/alloc/AllocTest.err
index 34ef7561..2dc99fe1 100644
--- a/tests/alloc/AllocTest.err
+++ b/tests/alloc/AllocTest.err
@@ -20,19 +20,12 @@ No TFI available.
No TFI available.
No TFI available.
No TFI available.
-ERROR: TFI not marked as used in PDCH
No TFI available.
No TFI available.
-ERROR: TFI not marked as used in PDCH
-ERROR: TFI not marked as used in PDCH
-ERROR: TFI not marked as used in PDCH
-ERROR: TFI not marked as used in PDCH
No TFI available.
No TFI available.
-ERROR: TFI not marked as used in PDCH
No TFI available.
No TFI available.
-ERROR: TFI not marked as used in PDCH
No TFI available.
No TFI available.
No TFI available.