Friendly suit
In the United States, a friendly suit is most often used when two parties desire or require judicial recognition of a settlement agreement, and so one sues the other despite the lack of conflict between them.
The law condones this practice because there are several benefits to settling a lawsuit as opposed to settling a claim outside of a lawsuit. First, if one of the parties to the claim is a minor, they usually cannot settle the claim without the appointment of a guardian ad litem to review and accept the settlement. Once the suit is filed, and the settlement is reviewed by the ad litem who considers the best interest of the child, after which the parties can then file a joint motion for the court to render judgment, which would then be binding on all parties regardless of their minority.